/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/Layout/index.vue'
import { RouteConfig } from 'vue-router'

const creditCenter: RouteConfig = {
  path: '/creditCenter',
  component: Layout,
  // redirect: '/creditCenter/Geyes',
  name: 'creditCenter',
  meta: {
    hidden: true,
    title: '信用中心',
    icon: 'table'
  },
  // hidden: true,
  children: [
    {
      path: 'Geyes',
      // component: () => import('@/views/creditCenter/Geyes/index'),
      name: '金眼',
      meta: { title: '金眼' }
    },
    {
      path: 'companyList',
      // component: () => import('@/views/creditCenter/Geyes/list'),
      name: '企业列表',
      meta: {
        title: '企业列表',
        hidden: true
      }
    },
    {
      path: 'companyDetail/:id',
      // component: () => import('@/views/creditCenter/Geyes/detail'),
      name: '企业详情',
      meta: {
        title: '企业详情',
        hidden: true
      }
    },
    {
      path: 'mineFollow',
      // component: () => import('@/views/creditCenter/mine/follow'),
      name: '我的关注',
      meta: { title: '我的关注' }
    },
    {
      path: 'mineUpdate',
      // component: () => import('@/views/creditCenter/mine/update'),
      name: '我的更新',
      meta: { title: '我的更新' }
    },
    {
      path: 'mineIncluded',
      // component: () => import('@/views/creditCenter/mine/included'),
      name: '我的收录',
      meta: { title: '我的收录' }
    }
  ]
}
export default creditCenter
